import 'package:json_annotation/json_annotation.dart';

part 'tappay_sdk_common_result.g.dart';

@JsonSerializable()
class TappaySdkCommonResult {
  @JsonKey(name: 'success')
  bool success;

  @JsonKey(name: 'message')
  String? message;

  TappaySdkCommonResult({
    required this.success,
    this.message,
  });

  factory TappaySdkCommonResult.fromJson(Map<String, dynamic> json) => _$TappaySdkCommonResultFromJson(json);

  Map<String, dynamic> toJson() => _$TappaySdkCommonResultToJson(this);
}